package com.zhentao.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhentao.dto.h5.ProductSkuDto;
import com.zhentao.entity.product.ProductSku;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【product_sku(商品sku)】的数据库操作Mapper
* @createDate 2024-09-03 20:08:12
* @Entity com.zhentao.pojo.ProductSku
*/
public interface ProductSkuMapper extends BaseMapper<ProductSku> {

    List<ProductSku> findProductSkuBySale();

    Page<ProductSku> findByPage(@Param("page1") Page<ProductSku> page1,@Param("productSkuDto") ProductSkuDto productSkuDto);

    void updateSale(@Param("skuId") Long skuId, @Param("num")Integer num);
}




